
cc.Class({
    extends: cc.Component,

    properties: {

    },

    // LIFE-CYCLE CALLBACKS:
    ctor(){
        this._chain = null;
        // this._idx = -1;
    },

    getChain(){
        return this._chain;
    },

    setChain(chain){
        this._chain = chain;
    },

    // setIdx(value){
    //     this._idx = value;
    // },
    // getIdx(){
    //     return this._idx;
    // },

    // onLoad () {},

    start () {

    },

    // update (dt) {},

    highlight(){
        this.node.color = cc.Color.RED;
    },
    unhighlight(){
        this.node.color = cc.Color.WHITE;
    },
});
